import Vue from 'vue'
import Router from 'vue-router'
import ResolveList from "../pages/domain/ResolveList"
import DomainTable from "../pages/domain/DomainTable"
import Domain from '../pages/domain/Domain'
import ConfigHome from '../pages/config/configHome'
// import App from '../App'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/globalDomain',
            name: 'globalDomain',
            component: Domain,
            children: [
                {
                    path: '',
                    name: 'domainTable',
                    component: DomainTable
                },
                {
                    path: 'resolveList',
                    name: 'resolveList',
                    component: ResolveList
                }
            ]
        },
        {
            path: '/globalConfig',
            name: 'globalConfig',
            component: ConfigHome,
        },
        {
            path: '/',
            redirect: '/globalDomain'
        }

    ]
})